package com.jidian.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jidian.entity.Course;
import com.jidian.entity.StudentCourse;
import com.jidian.entity.User;
import com.jidian.service.StudentCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 冯永龙、王艳玲、李斐
 * @since 2020-11-28
 */
@RestController
@RequestMapping("//studentCourse")
@CrossOrigin
public class StudentCourseController {
    @Autowired
    private StudentCourseService studentCourseService;

    @PostMapping("/getCourse")
    public List<StudentCourse> studentCourse(Integer studentId){
        System.out.println(studentId);
        return studentCourseService.getStudentCourse(studentId);
    }

}

